package cn.ncupyh.Extends;

/*1.经理
成员变量:工号，姓名，工资，管理奖金成员方法:工作(管理其他人)，吃饭(吃米饭)
2.厨师
成员变量:工号，姓名，工资成员方法:工作(炒菜)，吃饭(吃米饭)*/
public class Work {
    public String ID;
    public String name;
    public double salary;

    public void eat(){
        System.out.println("吃米饭!");
    }
    public String getID() {
        return ID;
    }

    public void setID(String ID) {
        this.ID = ID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public Work(String ID, String name, double salary) {
        this.ID = ID;
        this.name = name;
        this.salary = salary;
    }

    public Work() {
    }
}
